package javabean;
/*
*   标准的javabean类,注意这里面是不写业务的处理逻辑
* */
//类: 对象的数据结构(对象的数据模版,也是设计图)
//类: 对象的数据结构(对象的数据模版,也是设计图)

public class Student {
    //1.私有成员变量
    private String name;

    private char sex;

    private double height;

    private double score;
    //2.提供公共的无参数构造器(默认存在)--注意一般两种都提供,不管是否用到
    public Student(){}

    //带参构造器
    public Student(String name, char sex, double height, double score) {
        this.name = name;
        this.sex = sex;
        this.height = height;
        this.score = score;
    }

    //get与set方法

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }
}
